package com.dykj.fireFighting.server.monitoringCenter.service.impl;

import com.dykj.fireFighting.api.monitoringCenter.entity.PgRegionRecordScore;
import com.dykj.fireFighting.api.monitoringCenter.service.IPgRegionRecordScoreService;
import com.dykj.fireFighting.common.core.service.impl.BaseServiceImpl;
import com.dykj.fireFighting.server.monitoringCenter.mapper.PgRegionRecordScoreMapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.transaction.annotation.Transactional;


import java.util.List;
import java.util.Map;

/**
 *
 *
 * @Author JacksonTu
 * @Date  2022-02-21 14:49:22
 */
@Slf4j
@DubboService
@Transactional(rollbackFor = Exception.class)
public class PgRegionRecordScoreServiceImpl extends BaseServiceImpl<PgRegionRecordScoreMapper, PgRegionRecordScore> implements IPgRegionRecordScoreService {


    @Override
    public int batchAdd(List<PgRegionRecordScore> list) {
        return this.baseMapper.batchAdd(list);
    }

    @Override
    public List<PgRegionRecordScore> selectList(Map<String, Object> map) {
        return this.baseMapper.selectList(map);
    }
}
